package com.duan.laugh.email.service;


import com.duan.laugh.email.api.pojo.entity.MailRequest;

/**
 * @author duanjw
 */
public interface MailService {
    /**
     * 发送邮件
     *
     * @param mailRequest
     * @return
     */
    boolean sendMail(MailRequest mailRequest);

    /**
     * 发送邮件并记录耗时
     *
     * @param mailRequest
     */
    void sendMailAndLogTime(MailRequest mailRequest);
}
